package com.beyond.trace.domain.storage;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单主表 t_trace_base
 * @author yao
 * @date 2023-04-14
 */
@Data
@TableName("t_trace_jxc_order")
public class Order extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @JsonSerialize(using= ToStringSerializer.class)
    private String id;

    /** 订单编号 */
    @Excel(name = "订单编号")
    @ApiModelProperty(value = "订单编号")
    private String orderNo;

    /** 订单时间 */
    @Excel(name = "订单时间")
    @ApiModelProperty(value = "订单时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date orderTime;

    /** 客户姓名 */
    @Excel(name = "客户姓名")
    @ApiModelProperty(value = "客户姓名")
    private String customerName;

    /** 联系方式 */
    @Excel(name = "联系方式")
    @ApiModelProperty(value = "联系方式")
    private String phone;

    /** 合计 */
    @Excel(name = "合计数量")
    @ApiModelProperty(value = "合计数量")
    private BigDecimal totalCount;

    /** 合计金额 */
    @Excel(name = "合计金额")
    @ApiModelProperty(value = "合计金额")
    private BigDecimal totalMoney;

    /** 删除标志 */
    @JsonIgnore
    @TableLogic
    private int delFlag;

    @ApiModelProperty(value = "部门id")
    @JsonIgnore
    private String departId;
}
